import request from '@/utils/request'

// 查询评分项列表
export function listScoreItems(query) {
  return request({
    url: '/suggestions/ScoreItems/list',
    method: 'get',
    params: query
  })
}

// 查询评分项详细
export function getScoreItems(id) {
  return request({
    url: '/suggestions/ScoreItems/' + id,
    method: 'get'
  })
}

// 新增评分项
export function addScoreItems(data) {
  return request({
    url: '/suggestions/ScoreItems',
    method: 'post',
    data: data
  })
}

// 修改评分项
export function updateScoreItems(data) {
  return request({
    url: '/suggestions/ScoreItems',
    method: 'put',
    data: data
  })
}

// 删除评分项
export function delScoreItems(id) {
  return request({
    url: '/suggestions/ScoreItems/' + id,
    method: 'delete'
  })
}
